/*
 * ViewerListener.h
 *
 *  Created on: May 25, 2011
 *      Author: madboyka
 */

#ifndef VIEWERLISTENER_H_
#define VIEWERLISTENER_H_
#include <QThread>
#include "Server.h"
#include "ViewerProtocol.h"

class Server;

/*!
 * Listener thread that, waits for incoming client connections and passes them to the Server.
 */
class ViewerListener : public QThread {
public:
	ViewerListener(Server*);
	virtual ~ViewerListener();
	void run();
private:
	Server *server;
	ViewerProtocol *protocol;
};

#endif /* VIEWERLISTENER_H_ */
